
/*
* Copyright (c) Z.G. Shi  <blueflycn at gmail dot com>
* Make a better world~
*/
#include <stdio.h>
#include <stdarg.h>

inline int32_t tyn_strntoi(char *, size_t);
inline int64_t tyn_strntol(char *, size_t);

inline uint32_t tyn_strntoui(char *, size_t);
inline uint64_t tyn_strntoul(char *, size_t);

inline float tyn_strntof(char *, size_t);
inline unsigned int tyn_hash32(const void *, int);

int tyn_compare_float(float *a, float *b);
int tyn_compare_uint32_t(uint32_t *a, uint32_t *b);
int tyn_compare_string_by_hash32(char **a, char **b);
extern inline int tyn_bget_array_idx_uint32_t(uint32_t element, uint32_t *array, size_t array_size);
extern inline int tyn_lget_array_idx_uint32_t(uint32_t element, uint32_t *array, size_t array_size);

int tyn_read(int fd, char *buffer, size_t buffer_size);
int tyn_write(int fd, char *buffer, size_t buffer_size);

int tyn_log(FILE *, char *, ...);
